from django.conf import settings
from django.conf.urls import patterns, include, url
from django.conf.urls.static import static
from django.views.generic import TemplateView

from django.contrib import admin

urlpatterns = patterns(
    "",
    url(r"^$", TemplateView.as_view(template_name="homepage.html"), name="home"),
    url(r"^admin/", include(admin.site.urls)),
    url(r"^account/", include("account.urls")),
    url(r"^account/", include("account.urls", namespace="account")),
    url(r"^index/", include("emhub.urls", namespace="emhub")),
    url(r'^gcalendar/', include('gcalendar.urls', namespace="gcalendar")),
    url(r'^todo/', include('todo.urls')),
    # url('', include('social.apps.django_app.urls', namespace='social')),
)

urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
